<?php

use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::group(['middleware'=>'auth:api'], function (){

    Route::any('member/getInfo', 'UserController@index');
    Route::any('member/editInfo', 'UserController@update');
    // 上传用户头像图片
    Route::any('Appupload', 'UserController@uploadImage');

    Route::any('member/likeVideo', 'UserController@likeVideo');
    Route::any('member/getLikeVideos', 'UserController@getLikeVideos');
    Route::get('member/getVideosByIds', 'UserController@getVideosByIds');
});

Route::get("video","VideoController@detail");
Route::get("home/videos","VideoController@index");
Route::any("member/checkLogin","HomeController@smsLogin");
Route::any("whq2021/user/freeLogin","HomeController@freeLogin");
Route::any("member/getSmscode","HomeController@getSmsCode");
Route::any("appazv/v","AppController@getRelease");


// 足球比赛数据接口
require "match.php";
